<%@page import="com.video.vo.DTypeVO" %>
<%@page import="com.video.vo.DirectionVO"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link rel="stylesheet" href="css/global_style.css" type="text/css" />
<script type="text/javascript">
	window.onload = function(){
		var dire = document.getElementById("dire");
		dire.onchange = function(){
			
			window.location.href = "findType.do?did="+this.value;
		}
	}
</script>
</head>

<body>
	
		<div class="main_right_top">订单管理 > <span>全部订单</span></div>
		<div class="main_right_body"> 
			<div class="creat_user">
				<ul>
					<li>
						<label>课程方向：</label>
						<select id="dire">
							<option>----请选择----</option>
							<%
							
							String s_did = request.getParameter("did") == null?"-1":request.getParameter("did");
							int did = Integer.parseInt(s_did);
							List<DirectionVO> list =(List<DirectionVO>) request.getAttribute("listDire");
							for(int i=0;i<list.size();i++){
								if(list.get(i).getId() ==did){%>
									<option  selected="selected"   value="<%=list.get(i).getId()%>"><%=list.get(i).getDirection() %></option>
								<%}else{ %>
									<option value="<%=list.get(i).getId()%>"><%=list.get(i).getDirection() %></option>
							 <% }} %>
						</select>	
					</li>
					<li>
						<label>课程类型：</label>
						<select>
							<%
							List<DTypeVO> list2 = (List<DTypeVO>)request.getAttribute("listType");
							if(list2!= null){
							
							for(int i=0;i<list2.size();i++){
							%>
							<option><%=list2.get(i).getTname()%></option>
							<%}	
							}%>
						</select>	
					</li>
					<li>
						<label>课程名称：</label>
						<input type="text" />					
					</li>
					<li>
						<label>作者：</label>
						<input type="text" />					
					</li>
					
					<li>
						<label>课程说明：</label>
						<textarea class="textarea_min"></textarea>						
					</li>
					<li>
						<label>上传图片：</label>
						<div class="online_img">
							<!-- <div class="book_img">
								<img src="images/one.jpg">
								<a class="book_img_delete"></a>
							</div> -->
							<div class="gall_file_fold">
								  <input type="button" id="" value="点击上传图片" class="galleries_chose">
								  <input type="file" class="jquploader">
							 </div>
						</div>	
					</li>	
				</ul>	
			</div><!--creat_user-->
			<div class="regist_btn">
				<input type="submit" value="提交" />
				<a class="return_btn">返回</a>
			</div>		
		</div> <!--main_right_body-->
	
</body>
</html>
